package com.yangye.springclouddemomqtt.model;

import lombok.Data;

/**
 * @description: mqtt发送消息体
 * @author: zhangfl
 * @create: 2020-10-15 10:44
 **/
@Data
public class OutPayLoad<T>{
    private T data;

    public static  <T> OutPayLoad<T> newInstanceData(T data) {
        OutPayLoad<T> ret = new OutPayLoad<T>();
        ret.setData(data);
        return ret;
    }
}
